<template>
  <div class="change-box">
    <div class="box top">
      <div class="left">
        <p>CNY</p>
        <van-icon name="arrow" class="icon" />
      </div>
      <div class="right">
        <p>支付</p>
        <span>| 需要兑换的金额</span>
      </div>
    </div>
    <div class="box down">
      <div class="left">
        <p>HKD</p>
        <van-icon name="arrow" class="icon" />
      </div>
      <div class="right">
        <p>获得</p>
        <span class="money">6000</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="scss" scoped>
.change-box {
  height: 180px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.box {
  display: flex;
  flex-grow: 1;
  flex-direction: row;
  p {
    font-size: 16px;
    font-family: DIN Alternate;
    font-weight: bold;
    color: #333333;
  }
  .left {
    width: 85px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-right: #eee 1px solid;
  }
  .right {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin: 25px 20px 15px 0px;
    span {
      font-size: 13px;
      font-family: Source Han Sans CN;
      color: #999;
    }
    .money {
      font-size: 22px;
      font-family: DIN Alternate;
      font-weight: bold;
      color: #3068f4;
    }
  }
  .icon {
    font-size: 14px;
    font-weight: bold;
  }
}
.top {
  border-bottom: #eee 1px solid;
}
</style>
